//
//  RBQiniuLoadTool.h
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^QNSuccessBlock)(NSMutableArray * _Nonnull reslutAarry);
typedef void(^QNSuccessSignBlock)(NSString * _Nonnull reslutStr);
typedef void(^QNFailureBlock)(NSString * _Nonnull error);
typedef void(^alertHandler)(UIAlertAction *_Nullable action);
typedef void(^cancleHandler)(UIAlertAction *_Nullable action);

@interface RBQiniuLoadTool : NSObject
///单张图片上传
+(void)rb_uploadImageToQNFilePath:(UIImage *)filePat andAceicheToken:(NSString *)token andBuletName:(NSString *)BuletName success:(QNSuccessSignBlock)success failure:(QNFailureBlock)failure;
///上传多张图片到七牛云
+(void)rb_uploadImageToQNFilePath:(NSArray *)photos andBuletName:(NSString *)BuletName andTokenStr:(NSString *)token success:(QNSuccessBlock)success failure:(QNFailureBlock)failure;
///上传视频
+(void)rb_uploadVideoToQNFilePath:(NSURL *)VideoString andAceicheToken:(NSString *)token andBuletName:(NSString *)BuletName success:(QNSuccessSignBlock)success failure:(QNFailureBlock)failure;
///上传音频
+(void)rb_uploadAmrToQNFilePath:(NSData *)AmrData andAceicheToken:(NSString *)token andBuletName:(NSString *)BuletName success:(QNSuccessSignBlock)success failure:(QNFailureBlock)failure;
@end

NS_ASSUME_NONNULL_END
